package com.ltedu.auth.client;

import com.ltedu.auth.factory.AuthClientFallbackFactory;
import com.ltedu.common.vo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @className: AuthClient
 * @auther: Jerry
 * @date: 2020/12/15 9:57
 * @desctiption: TODO
 * @version: 1.0
 */
@FeignClient(value = "learning2think-edu-system", path = "/user", fallbackFactory = AuthClientFallbackFactory.class)
public interface AuthClient {

    @GetMapping("/loadByUsername")
    Result info(@RequestParam("username") String username);
}
